const express = require('express');
const bodyParser = require('body-parser');
var app = express();
app.listen(3000);
//静态文件
app.use(
    express.static('./public')
);

app.use(bodyParser.urlencoded({
    extended:false,
}));

//路由
app.post('/reg',(req,res)=>{
    console.log(req.body);
    res.send('注册成功,你好');
});

